vim.g.python3_host_prog = os.getenv('PYTHON')

local platform = vim.loop.os_uname().sysname
if platform == "Darwin" then
    require('avante').setup({
      provider = "copilot"
    })
elseif platform == "Linux" then
    require('avante').setup({
      provider = "deepseek",
      auto_suggestions_provider = "deepseek",
      vendors = {
        deepseek = {
          __inherited_from = "openai",
          api_key_name = "MXCDP_API_KEY",
          endpoint = "https://ai-gateway.mxcdp.com",
          model = "deepseek-v3",
          disable_tools = true,
        },
      }
    })
end
